import request from "@/utils/http"
import type { PageParams } from'@/types/Global'
import type { DefaultResult } from '@/types/DefaultResult'
import type { SkuInfo } from'@/types/SkuModule'
import type { BannerItem } from "@/types/BannerItem"

// 首页猜你喜欢商品
export const getHomeGuessLikeApi = (data?: PageParams) => {
  return request<DefaultResult<SkuInfo>>({
    method: 'GET',
    url: 'search/front/like',
    data,
  })
}

// 首页轮播广告
export const getHomeSwiperApi = () => {
  return request<BannerItem[]>({
    method: 'GET',
    url: 'sms/front/advertise/list',
  })
}